<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS选择器</title>
    <style>
        /* 标签选择器
        p {
            color: red;
        } */
        /*Class选择器*/
        
        #p1 {
            color: red;
        }
        
        .p2 {
            color: blue;
        }
    </style>

</head>


<body>


    <p id="p1">我</p>
    <p id="p1">我</p>
    <p class="p2">我</p>
    <p class="p2">我</p>
</body>

</html>